html,body{
    height: 100%;
    overflow: hidden;
}
body{
    margin: 0;
    font-family: "Microsoft YaHei", sans-serif;
}
.cover{
    overflow: hidden;
    width: 0;
    height: 0;
    position: absolute;
}
.trasition-3{
    -webkit-transition: all .3s;
    transition: all .3s;
}
.layout{
    max-width: 640px;
    margin: 0 auto;
    height: 100%;
}
.scene{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.bg101{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58.39%;
    background: url("../img/p101.jpg") no-repeat center top;
    background-size: 100% 100%;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    z-index: 1;
}
.bg102{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 41.61%;
    background: url("../img/p102.jpg") no-repeat center top;
    background-size: 100% 100%;
    -webkit-transform-origin: top;
    transform-origin: top;
    z-index: 1;
}

.on .bg101,
.on .bg102{
    -webkit-animation: scale-y 1s;
    animation: scale-y 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.pos1{
    width: 100%;
    height: 100%;
    top: 0;
    left: 50%;
    position: absolute;
    z-index: 2;
}
.ball1{
    position: absolute;
    width: 9.375%;
    top: 42.6%;
    right: 112%;
    z-index: 5;
}
.p104{
    position: absolute;
    width: 46%;
    top: 37.6%;
    right: 73%;
}
.p103{
    position: absolute;
    width: 42%;
    bottom: 10%;
    right: 78%;
}
.on .ball1{
    -webkit-animation: fly-from-far .8s 1s, rotating 1s infinite linear 1.8s;
    animation: fly-from-far .8s 1s, rotating 1s infinite linear 1.8s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.on .p103{
    -webkit-animation: beating .8s infinite linear 2.4s;
    animation: beating .8s infinite linear 2.4s;
}
.on .p104{
    -webkit-animation: jump-from-bottom .8s 1.8s;
    animation: jump-from-bottom .8s 1.8s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.bg101,
.bg102,
.ball1,
.p104,
.p103{
    opacity: 0;
}
.copy{
    color: #fff;
    font-size: 12px;
    text-align: center;
    position: absolute;
    bottom: 5px;
    z-index: 98;
    width: 100%;
    line-height: 1.6;
    letter-spacing: 1px;
    opacity: 0;
}
.on .copy{
    -webkit-animation: fade-in .8s 2.4s;
    -o-animation: fade-in .8s 2.4s;
    animation: fade-in .8s 2.4s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.teams-select{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("../img/teams-bg.jpg");
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
    z-index: 99;
    display: none;
}
.teams-select.show{
    display: block;
    -webkit-animation: slide-down .8s;
    -o-animation: slide-down .8s;
    animation: slide-down .8s;
}
.teams-title{
    width: 81%;
    margin: 10% auto 0;
    display: block;
}
.teams-note{
    text-align: center;
    font-size: 12px;
    margin-bottom: 3%;
}
.teams-list{
    width: 90%;
    height: 52%;
    overflow: scroll;
    margin: 0 auto;
    font-size: 0;
    text-align: center;
}
.teams-item{
    width: 25%;
    padding: 2%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
}
.teams-item.active{
    background: rgba(248,202,112,.7);
}
.teams-icon{
    width: 100%;
    display: block;
}
.teams-name{
    font-size: 12px;
}
.rules-time{
    color: #f8ca70;
}
.start-btn{
    width: 55%;
    display: block;
    margin: 8% auto;
}

.scene-2{
    background: url("../img/bg201.jpg") no-repeat center top;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
    opacity: 0;
}
.scene-2.on{
    -webkit-animation: fade-in 1s;
    animation: fade-in 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.ball201{
    display: block;
    position: absolute;
    width: 13.8%;
    bottom: 10%;
    left: 43.1%;
    z-index: 3;
}
.steer{
    position: absolute;
    display: block;
    width: 19%;
    bottom: 8.45%;
    left: 40.2%;
    opacity: 0;
    -webkit-transform-origin: center 60%;
    transform-origin: center 60%;
    z-index: 2;
}
.steer.touch{
    opacity: .8;
}
.score201,
.clock201 {
    position: absolute;
    top: 5px;
    font-size: 18px;
    color: #fff;
    padding: 3px .8em;
    background: url("../img/txt-bg.png") no-repeat;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}
.score201{
    left: 0;
}
.clock201{
    right: 0;
}

.goalie{
    position: absolute;
    bottom: 53%;
    opacity: 0;
}
.goalie201{
    width: 34%;
    left: 33%;
}
.goalie202{
    width: 45%;
    left: 27.5%;
}
.goalie203{
    width: 15%;
    left: 42.5%;
}
.goalie.on{
    opacity: 1;
}

.pointer201{
    position: absolute;
    width: 31.25%;
    top: 86%;
    left: 50%;
    z-index: 5;
}
.on .pointer201{
    -webkit-animation: beating 1s infinite linear;
    animation: beating 1s infinite linear;
}
.pointer201.hide{
    display: none;
}
.goal201{
    position: absolute;
    width: 74%;
    height: 27.8%;
    top: 18.5%;
    left: 13%;
    opacity: 0;
}
#cv{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
}
.rules,
.rank-box{
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    top: 0;
    left: 0;
    position: absolute;
    z-index: 98;
    display: none;
}
.rules-inner,
.rank-inner{
    width: 80%;
    margin: 19.5% auto;
    position: relative;
}
.rules-img,
.rank-bg{
    width: 100%;
    display: block;
}
.rules-close,
.rank-close{
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    margin-top: 12%;
    margin-right: 6%;
    background: url("../img/close.png") no-repeat center;
    -webkit-background-size: 100% 100%;
    background-size: 100% 100%;
}
.rules-content{
    position: absolute;
    top: 38%;
    color: #fff;
    width: 84%;
    height: 48%;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow: auto;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    text-indent: 2em;
}
.rules.show,
.rank-box.show{
    display: block;
}
.show .rules-inner{
    -webkit-animation: slide-down .8s;
    -o-animation: slide-down .8s;
    animation: slide-down .8s;
}
.show-rules{
    position: absolute;
    width: 16%;
    bottom: 5px;
    left: 5px;
}

.scene-3{
    background: url("../img/bg301.jpg") no-repeat center top;
    -webkit-background-size: cover;
    background-size: cover;
}
.result{
    width: 89.5%;
    margin: 15.6% auto 0;
    position: relative;
    opacity: 0;
    font-size: 30px;
    font-weight: bolder;
    text-align: center;
}
.result-success{
    display: none;
}
.result-success-img{
    width: 70%;
    display: block;
    margin: 0 auto;
}
.result-success-txt{
    color: #dc212a;
}
.result-success-msg{
    color: #2c4fb6;
    margin: 6% 0;
}
.result-team{
    padding: 0 10px;
}
.result-score{
    font-size: 42px;
    color: #c61921;
    padding: 0 10px;
}
.rank-btn{
    width: 55%;
    display: block;
    margin: 10% auto;
}
.current-rank{
    color: #2c4fb6;
    margin: 6% auto;
    font-size: 24px;
}
.current-rank-num{
    color: #c61921;
}
.result-fail{
    width: 80%;
    display: none;
    margin: 0 auto;
}
.success .result-success{
    display: block;
}
.fail .result-fail{
    display: block;
}
.again{
    width: 15%;
    position: absolute;
    left: 20%;
    opacity: 0;
    bottom: 20px;
}
.share{
    width: 12.2%;
    position: absolute;
    right: 20%;
    opacity: 0;
    bottom: 20px;
}

.on .result{
    -webkit-animation: slide-down 1s;
    animation: slide-down 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.on .again{
    -webkit-animation: fade-in 1s .6s;
    animation: fade-in 1s .6s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.on .share{
    -webkit-animation: fade-in 1s 1.2s;
    animation: fade-in 1s 1.2s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.rank-list{
    position: absolute;
    top: 28%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    height: 70%;
    overflow: auto;
    color: #fff;
}
.rank-item{
    display: table;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    padding: 5px;
    margin-bottom: 10px;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.rank-1{
    background: #fe6436;
}
.rank-2{
    background: #d14ff8;
}
.rank-3{
    background: #328afe;
}
.rank-4{
    background: #16388e;
}
.rank-cell{
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
.rank-num{
    width: 17%;
    font-weight: bolder;
    font-size: 16px;
}
.rank-score{
    font-weight: bolder;
    font-size: 20px;
}
.rank-medal{
    display: block;
    width: 96%;
    margin: 0 auto;
}
.rank-team{
    width: 30%;
    font-size: 12px;
}
.rank-flag{
    display: block;
    width: 60%;
    margin: 0 auto;
}

.rotating{
    -webkit-animation: rotating .5s infinite linear;
    animation: rotating .5s infinite linear;
}

.jump-right-80{
    -webkit-animation: jump-right-80 .5s;
    animation: jump-right-80 .5s;
}
.jump-left-80{
    -webkit-animation: jump-left-80 .5s;
    animation: jump-left-80 .5s;
}
.jump-right-60{
    -webkit-animation: jump-right-60 .5s;
    animation: jump-right-60 .5s;
}
.jump-left-60{
    -webkit-animation: jump-left-60 .5s;
    animation: jump-left-60 .5s;
}
.jump-right-30{
    -webkit-animation: jump-right-30 .5s;
    animation: jump-right-30 .5s;
}
.jump-left-30{
    -webkit-animation: jump-left-30 .5s;
    animation: jump-left-30 .5s;
}
.jump-stat{
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
}

.popup-inner{
    display: inline-block;
    text-align: justify;
    padding: .5em 1em;
    max-width: 80%;
    background: #dc212a;
    color: #fff;
    border: 2px solid #f8c96e;
    -webkit-border-radius: .5em;
    -moz-border-radius: .5em;
    border-radius: .5em;
}

.loading-icon::after{
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    border-style: solid;
    border-top-width: 0;
    border-left-width: 2px;
    border-right-width: 0;
    border-bottom-width: 2px;
    -webkit-animation: rotating 1s linear infinite;
    -o-animation: rotating 1s linear infinite;
    animation: rotating 1s linear infinite;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}